package com.eascs.workflow.common.entity.sys;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 组织结构Entity
 * 
 * @author user
 *
 */
@Entity
@Table(name = "act_org")
public class ActOrgEntity implements Serializable {
	private static final long serialVersionUID = -2396317829023598290L;

	// 组织架构层级：0-总部，1-战区，2-省区，3-省区平台，4-省区金融公司，9-平台
	public static final int ORG_LEVEL_ROOT = 0;
	public static final int ORG_LEVEL_AREA = 1;
	public static final int ORG_LEVEL_PROVINCE = 2;
	public static final int ORG_LEVEL_PROVINCE_PLATFORM = 3;
	public static final int ORG_LEVEL_PROVINCE_FIN_COM = 4;
	public static final int ORG_LEVEL_PLATFORM = 9;

	@Id
	@Column(name = "id")
	private String orgId;

	@Column(name = "org_name")
	private String orgName;

	@Column(name = "parent_id")
	private String parentId;

	@Column(name = "unit_no")
	private String unitNo;

	@Column(name = "unit_code")
	private String unitCode;

	@Column(name = "level")
	private int orgLevel;

	@Column(name = "creator_no")
	private String creatorNo;

	@Column(name = "org_full_name")
	private String orgFullName;

	@Column(name = "office_address")
	private String officeAddress;

	@Column(name = "sponsor_tel")
	private String sponsorTel;

	@Column(name = "register_address")
	private String registerAddress;

	@Column(name = "create_time")
	private Date createTime;

	@Column(name = "updator_no")
	private String updatorNo;

	@Column(name = "update_time")
	private Date updateTime;
	
	@Column(name = "is_natural_province")
	private Integer isNaturalProvince;
	
	@Column(name = "province")
	private String province;
	
	@Column(name = "city")
	private String city;

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getUnitNo() {
		return unitNo;
	}

	public void setUnitNo(String unitNo) {
		this.unitNo = unitNo;
	}

	public String getCreatorNo() {
		return creatorNo;
	}

	public void setCreatorNo(String creatorNo) {
		this.creatorNo = creatorNo;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdatorNo() {
		return updatorNo;
	}

	public void setUpdatorNo(String updatorNo) {
		this.updatorNo = updatorNo;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getOrgLevel() {
		return orgLevel;
	}

	public void setOrgLevel(int orgLevel) {
		this.orgLevel = orgLevel;
	}

	public String getOrgFullName() {
		return orgFullName;
	}

	public void setOrgFullName(String orgFullName) {
		this.orgFullName = orgFullName;
	}

	public String getOfficeAddress() {
		return officeAddress;
	}

	public void setOfficeAddress(String officeAddress) {
		this.officeAddress = officeAddress;
	}

	public String getSponsorTel() {
		return sponsorTel;
	}

	public void setSponsorTel(String sponsorTel) {
		this.sponsorTel = sponsorTel;
	}

	public String getRegisterAddress() {
		return registerAddress;
	}

	public void setRegisterAddress(String registerAddress) {
		this.registerAddress = registerAddress;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public Integer getIsNaturalProvince() {
		return isNaturalProvince;
	}

	public void setIsNaturalProvince(Integer isNaturalProvince) {
		this.isNaturalProvince = isNaturalProvince;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
}
